home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
lib
/
ubiquity
/
console-setup
/
locale
< prev
Wrap
Text File
|
2008-10-29
|
546b
|
21 lines
#! /bin/sh -e
# If possible, report the intended installation locale rather than the
# current locale. Used by console-setup.
# This must not be installed in /usr/lib/ubiquity/compat; debconf calls
# locale itself, so a locale wrapper cannot source the debconf confmodule.
. /usr/share/debconf/confmodule
if db_get debian-installer/locale && [ "$RET" ]; then
LOCALE="$RET"
fi
TEXT="$(PATH=/usr/sbin:/usr/bin:/sbin:/bin locale "$@")"
if [ "$LOCALE" ]; then
printf '%s\n' "$TEXT" | sed "s/=.*/=$LOCALE/"
else
printf '%s\n' "$TEXT"
fi
exit 0